package oops;

public class Student {
	
	private int id;
	private String name;
	
	public Student(){
		System.out.println("constructor with no arguments");
	}
	
	public Student(int id){
		this();
		this.id =id;
	}
	public Student(int studentId, String name){
		this(studentId);
		this.name=name;
		this.showId();
		
		
	}
	
	
	public void showId(){
		
	}
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void displayData(){
		
		System.out.println("Id is : " + id + "  Name  : " + name );
	}
	
	

}
